package com.tanhua.server.controller;

import com.tanhua.server.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/huanxin")
public class HuanxinController {
    @Autowired
    private UserService userService;


    @GetMapping("/user")
    public ResponseEntity huanxinUser() {
        Map map = userService.findById();
        return ResponseEntity.ok(map);
    }
}
